﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AliCharacter_recognition.Utils.BaiduTool.BaiduOcrJson
{
    /// <summary>
    /// 小票打印
    /// </summary>
    internal class ReceiptJson
    {
        public class Location
        {
            /// <summary>
            ///
            /// </summary>
            public int width { get; set; }

            /// <summary>
            ///
            /// </summary>
            public int top { get; set; }

            /// <summary>
            ///
            /// </summary>
            public int left { get; set; }

            /// <summary>
            ///
            /// </summary>
            public int height { get; set; }
        }

        public class Probability
        {
            /// <summary>
            ///
            /// </summary>
            public double variance { get; set; }

            /// <summary>
            ///
            /// </summary>
            public double average { get; set; }

            /// <summary>
            ///
            /// </summary>
            public double min { get; set; }
        }

        public class Words_resultItem
        {
            /// <summary>
            /// 易通金服
            /// </summary>
            public string words { get; set; }

            /// <summary>
            ///
            /// </summary>
            public Location location { get; set; }

            /// <summary>
            ///
            /// </summary>
            public Probability probability { get; set; }
        }

        public class Root
        {
            /// <summary>
            ///
            /// </summary>
            public long log_id { get; set; }

            /// <summary>
            ///
            /// </summary>
            public int direction { get; set; }

            /// <summary>
            ///
            /// </summary>
            public int words_result_num { get; set; }

            /// <summary>
            ///
            /// </summary>
            public List<Words_resultItem> words_result { get; set; }
        }
    }
}